#pragma once


#include <cmath>


const float LOCATION_UNDEFINED = -1;


class CG_location
{
	private:
		float x; 
		float y;
	public:
		CG_location();
		CG_location(const float, const float);
		CG_location(const CG_location&);
		~CG_location();
		CG_location& operator=(const CG_location&);
		float get_x() const;
		float get_y() const;
		bool set_x(const float loc_x);
		bool set_y(const float loc_y);
		float calc_distance(const float, const float);
		float calc_distance(const CG_location&);
};
